<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="Bookmark" href="../favicon.ico">
<link rel="Shortcut Icon" href="../favicon.ico" />

<link rel="stylesheet" type="text/css"
	href="../static/h-ui/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css"
	href="../static/h-ui.admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css"
	href="../lib/Hui-iconfont/1.0.8/iconfont.css" />
<link rel="stylesheet" type="text/css"
	href="../static/h-ui.admin/skin/default/skin.css" id="skin" />
<link rel="stylesheet" type="text/css"
	href="../static/h-ui.admin/css/style.css" />

	
<title>用户首页</title>
</head>
<body>
	<article class="page-container">
		<form action="" method="post" class="form form-horizontal"
			id="form-admin-announcement-upd">
			<!-- 隐藏域 -->
				<input type="hidden" name="id" value ="${member.id }"/>
			<!-- 隐藏域 -->
			<%-- <div class="row cl"  style="display:flex;align-items:center">
				<label class="form-label col-xs-4 col-sm-3"><span
					class="c-red"></span>姓名：</label>
					${member.name }
				
				
				<label class="form-label col-xs-4 col-sm-3"><span
					class="c-red"></span>手机号：</label>
					${member.tel }
				
				<label class="form-label col-xs-4 col-sm-3"><span
					class="c-red"></span>性别：</label>
					<c:if test="${member.sex  == 1}">
						男
					</c:if>
					<c:if test="${member.sex  == 2}">
						女
					</c:if>
				
				
			</div>
			
			<div class="row cl"  style="display:flex;align-items:center">
				<label class="form-label col-xs-4 col-sm-3"><span
					class="c-red"></span>推广员id：</label>
					${member.num }
				
					<label class="form-label col-xs-4 col-sm-3"><span 
					class="c-red"></span>当前等级：</label>
						${member.level }
					
					<label class="form-label col-xs-4 col-sm-3"><span
					class="c-red"></span>团队人数：</label>
					${member.membernum }
					
					<c:if test="${member.id !=null  }">
						<div type="button" class="btn btn-success radius"
							id="admin-role-save" name="admin-role-save" onclick="showStream('${member.id }')"> 
							<i class="icon-ok"></i> 查看
						</div>
					</c:if>
			</div>
			
			<div class="row cl"  style="display:flex;align-items:center">
				<label class="form-label col-xs-4 col-sm-3"><span
				 class="c-red"></span>总积分：</label>
						${member.saleamount }
				<c:if test="${member.id !=null  }">
					<div type="button" class="btn btn-success radius"
						id="admin-role-save" name="admin-role-save"  onclick="showStream1('${member.id }')">
						<i class="icon-ok"></i> 明细
					</div>
				</c:if>
					<label class="form-label col-xs-4 col-sm-3"><span
					class="c-red"></span>可提现积分：</label>
					${member.withdrawintegral }
					<c:if test="${member.id !=null  }">
						<c:if test="${member.withdrawintegral  >= 1000}">
							<div type="button" class="btn btn-success radius"
								id="admin-role-save" name="admin-role-save" onclick="applyAmount('${member.id }')">
								<i class="icon-ok"></i> 申请提现
							</div>
						</c:if>
					</c:if>
					<label class="form-label col-xs-4 col-sm-3"><span
					class="c-red"></span>已提现积分：</label>
					${member.hasamount }
					<c:if test="${member.id !=null  }">
						<div type="button" class="btn btn-success radius"
							id="admin-role-save" name="admin-role-save"  onclick="showAmount('${member.id }')">
							<i class="icon-ok"></i> 账单
						</div>
					</c:if>
			</div> --%>
			
			
			<div class="page-container">
			<table class="table table-border table-bordered table-hover table-bg">
			<tbody>
			<tr><td width="10%" align="right">姓名：</td><td width="20%">${member.name }</td><td width="10%">手机号：</td><td width="20%">${member.tel }</td><td width="10%">性别：</td><td width="20%"><c:if test="${member.sex  == 1}">
						男
					</c:if>
					<c:if test="${member.sex  == 2}">
						女
					</c:if></td></tr>
			<tr><td width="10%" align="right">推广员id：</td><td width="20%">${member.num }</td><td width="10%">当前等级：</td><td width="20%">
				<c:if test="${member.level  == 1}">
						天使合伙人
					</c:if>
					<c:if test="${member.level  == 2}">
						总监
					</c:if>
					<c:if test="${member.level  == 3}">
						名誉总监
					</c:if>
					<c:if test="${member.level  == 4}">
						督导
					</c:if>
					<c:if test="${member.level  == 5}">
						名誉督导
					</c:if>
					<c:if test="${member.level  == 6}">
						董事
					</c:if>
					<c:if test="${member.level  == 7}">
						名誉董事
					</c:if></td><td width="10%">团队人数：</td><td width="20%">${member.membernum }<c:if test="${member.id !=null  }">
						<div type="button" class="btn btn-success radius"
							id="admin-role-save" name="admin-role-save" onclick="showStream('${member.id }')"> 
							<i class="icon-ok"></i> 查看
						</div>
					</c:if></td></tr>
			<tr><td width="10%" align="right">总积分：</td><td width="20%">${member.saleamount }
				<c:if test="${member.id !=null  }">
					<div type="button" class="btn btn-success radius"
						id="admin-role-save" name="admin-role-save"  onclick="showStream1('${member.id }')">
						<i class="icon-ok"></i> 明细
					</div>
				</c:if></td><td width="10%" align="right">可提现积分：</td><td width="20%">${member.withdrawintegral }
					</td><td width="10%" align="right">已提现积分：</td><td width="25">${member.hasamount }
					<c:if test="${member.id !=null  }">
						<div type="button" class="btn btn-success radius"
							id="admin-role-save" name="admin-role-save"  onclick="showAmount('${member.id }')">
							<i class="icon-ok"></i> 账单
						</div>
					</c:if></td></tr>
			</tbody>
			</table>
			</div>
			
			
			

		</form>
	</article>

	<!--_footer 作为公共模版分离出去-->
	<script type="text/javascript" src="../lib/jquery/1.9.1/jquery.min.js"></script>
	<script type="text/javascript" src="../lib/layer/2.4/layer.js"></script>
	<script type="text/javascript" src="../static/h-ui/js/H-ui.min.js"></script>
	<script type="text/javascript"
		src="../static/h-ui.admin/js/H-ui.admin.js"></script>
	<!--/_footer 作为公共模版分离出去-->
	<script type="text/javascript"
		src="../lib/jquery.validation/1.14.0/jquery.validate.js"></script>
	<script type="text/javascript"
		src="../lib/jquery.validation/1.14.0/validate-methods.js"></script>
	<script type="text/javascript"
		src="../lib/jquery.validation/1.14.0/messages_zh.js"></script>
	<script type="text/javascript" src="../lib/ajaxfileupload.js"></script>
	<script type="text/javascript"
		src="../lib/My97DatePicker/4.8/WdatePicker.js"></script>
	<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript">
		
/*通知公告-通知列表-查看团队人数*/
function showStream(id){
	layer_show("团队人数",'${ctx}/member/showStream?id='+id,750,750);
}

function showStream1(memberid){
	layer_show("查看流水",'${ctx}/order/list?memberid='+memberid,750,750);
}	

function showAmount(memberid){
	layer_show("账单",'${ctx}/withdraw/list1?memberid='+memberid,750,750);
}	
</script>
</body>
</html>
